package com.itheima.mapper;

import com.itheima.pojo.Permission;
import com.itheima.pojo.Role;

import java.util.List;

public interface RoleMapper {

    void add(Role role);

    void addRoleAndPermission(Integer id, Integer permission);

    List<Role> findPage(String queryString);

    //根据id查询权限信息
    List<Permission> findById(Integer id);


}
